package struct.scene.ui
{
	import com.common.displayObjects.ComponentChildren;
	
	import flash.display.BitmapData;
	import flash.display.Graphics;
	
	import utils.Util;
	
	/**
	 * 场景地图层 
	 * @author Administrator
	 * 
	 */	
	public class SceneMapLayer extends ComponentChildren
	{
		public function SceneMapLayer(width:int, height:int)
		{
			super(width, height);
		}
		public function initMapLayer(missionID:int):void
		{
			var bmd:BitmapData = Util.getBitmapData("map" + String(missionID));
			var g:Graphics;
			g = graphics;
			g.beginBitmapFill(bmd);
			g.drawRect(0, 0, bmd.width, bmd.height);
			g.endFill();
		}
	}
}